<?php $form=$this->beginWidget('CActiveForm', array('htmlOptions'=>array('enctype'=>'multipart/form-data'))); ?>

		<?php echo $form->errorSummary($model); ?>

<p>
<?php echo $form->labelEx($model,'title'); ?>
<span class="info">Ingrese un titulo para el articulo</span>
<?php echo $form->textField($model,'title', array('class'=>'block', 'style'=>'width:300px')); ?>
<?php echo $form->error($model,'title'); ?>
</p>
<p>
<?php echo $form->labelEx($model,'resume'); ?>
<span class="info">Ingrese un breve resumen del articulo</span>
<?php echo CHtml::activeTextArea($model,'resume',array('rows'=>5, 'cols'=>70, 'style'=>'width:100%')); ?>
<?php echo $form->error($model,'resume'); ?>
</p>
<p>
<?php echo $form->labelEx($model,'content'); ?>
<span class="info">Le recomendamos que se breve y preciso</span>
<?php echo CHtml::activeTextArea($model,'content',array('rows'=>10, 'cols'=>70, 'style'=>'width:100%')); ?>
<?php echo $form->error($model,'content'); ?>
</p>
<p>
<?php echo $form->labelEx($model,'image_url'); ?>
<span class="info">Seleccione una imagen relacionada al articulo</span>
<?php echo CHtml::activeFileField($model, 'image_url',array('class'=>'block')); ?>
<?php echo $form->error($model,'image_url'); ?>
</p>
<p>
<?php echo CHtml::submitButton('Guardar'); ?>
</p>
<?php $this->endWidget(); ?>
<script language="javascript" type="text/javascript">
	tinyMCE.init({
		mode : "textareas",
		theme : "simple",
	});
</script>